package com.hngc.service.impl;

import com.hngc.entity.Comment;
import com.hngc.entity.NarRate;
import com.hngc.mapper.NarRateMapper;
import com.hngc.mapper.NarTypeMapper;
import com.hngc.service.INarRateService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author jobob
 * @since 2020-10-20
 */
@Service
public class NarRateServiceImpl extends ServiceImpl<NarRateMapper, NarRate> implements INarRateService {
    @Autowired
    NarRateMapper narRateMapper;

    @Override
    public List<NarRate> listall() {
        List<NarRate> list = null;
        try {
            list = narRateMapper.listall();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return list;
    }
}
